/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Pacient implements Serializable {
	public Pacient() {
	}
	
	private int idPaciente;
	
	private String RUT;
	
	private String nombre;
	
	private String apellidos;
	
	private String cellPhone;
	
	private orm.Diagnose diagnose;
	
	private orm.Response response;
	
	private void setIdPaciente(int value) {
		this.idPaciente = value;
	}
	
	public int getIdPaciente() {
		return idPaciente;
	}
	
	public int getORMID() {
		return getIdPaciente();
	}
	
	public void setRUT(String value) {
		this.RUT = value;
	}
	
	public String getRUT() {
		return RUT;
	}
	
	public void setNombre(String value) {
		this.nombre = value;
	}
	
	public String getNombre() {
		return nombre;
	}
	
	public void setApellidos(String value) {
		this.apellidos = value;
	}
	
	public String getApellidos() {
		return apellidos;
	}
	
	public void setCellPhone(String value) {
		this.cellPhone = value;
	}
	
	public String getCellPhone() {
		return cellPhone;
	}
	
	public void setDiagnose(orm.Diagnose value) {
		if (this.diagnose != value) {
			orm.Diagnose ldiagnose = this.diagnose;
			this.diagnose = value;
			if (value != null) {
				diagnose.setPacientidPaciente(this);
			}
			else {
				ldiagnose.setPacientidPaciente(null);
			}
		}
	}
	
	public orm.Diagnose getDiagnose() {
		return diagnose;
	}
	
	public void setResponse(orm.Response value) {
		if (this.response != value) {
			orm.Response lresponse = this.response;
			this.response = value;
			if (value != null) {
				response.setPacientidPaciente(this);
			}
			else {
				lresponse.setPacientidPaciente(null);
			}
		}
	}
	
	public orm.Response getResponse() {
		return response;
	}
	
	public String toString() {
		return String.valueOf(getIdPaciente());
	}
	
}
